package zhu.areas.tenderbid.service;

import java.util.List;

import zhu.areas.tenderbid.dao.ITenderCommDAO;
import zhu.areas.tenderbid.data.TenderComm;


public class TenderCommServiceImpl  implements ITenderCommService{

	private  ITenderCommDAO  tenderCommDAO;
	
	public ITenderCommDAO getTenderCommDAO() {
		return tenderCommDAO;
	}	
	public void setTenderCommDAO(ITenderCommDAO tenderCommDAO) {
		this.tenderCommDAO = tenderCommDAO;
	}

	
	public  Boolean  addTenderComm(TenderComm tenderComm){
		tenderCommDAO.save(tenderComm);
		return true;
	}

	
	public TenderComm getTenderCommByID(int id) {
		
		return (TenderComm) tenderCommDAO.findById(TenderComm.class, id);
	}
	
	public Boolean updateTenderComm(TenderComm tenderComm) {
		tenderCommDAO.update(tenderComm);
		return true;
	}
	
	public Boolean deleteTenderComm(TenderComm tenderComm) {
		tenderCommDAO.delete(tenderComm);
		return true;
	}
	
	public List<TenderComm> getAllTenderComm() {
		
		return null;
	}
	
	
	

	
}
